package com.nightsoul.ehcache.test;

import java.net.URL;

import org.ehcache.CacheManager;
import org.ehcache.config.builders.CacheManagerBuilder;


public class XmlConfiguration2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		URL url = XmlConfiguration2.class.getResource("/ehcache2.xml");
		org.ehcache.xml.XmlConfiguration xmlConfiguration = new org.ehcache.xml.XmlConfiguration(url);
		
		
		CacheManager cacheManager = CacheManagerBuilder.newCacheManager(xmlConfiguration);
		cacheManager.init();
		
		cacheManager.close();
	}

}
